package cm.cool.web.data;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import cm.cool.web.bean.Admin;

@Mapper
public interface AdminMapper {
	
    int deleteByPrimaryKey(String username);
    
    @Insert("insert into admin (username, password)  values (#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR})")
    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(String username);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);
}